﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;

namespace NHibernateBusiness.Common
{
    public interface ISessionStorage
    {
        /// <summary>
        /// 获取Session
        /// </summary>
        /// <returns></returns>
        ISession Get();
        /// <summary>
        /// 保存Session
        /// </summary>
        /// <param name="session">要保存的Session</param>
        /// <returns></returns>
        void Set(ISession session);
    }
}
